package com.ljf.finance.web;

import com.ljf.common.exception.ServiceException;
import com.ljf.common.result.ResultModel;
import com.ljf.common.web.BasisController;
import com.ljf.finance.dto.command.FinanceDatAccountReportTypeCommand;
import com.ljf.finance.dto.query.FinanceDatAccountReportTypeQuery;
import com.ljf.finance.service.IFinanceDatAccountReportTypeService;
import com.ljf.finance.vo.FinanceDatAccountReportTypeVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 账户报表类型  控制器
 *
 * @author LJF
 * @since 2024-12-07
 */
@RestController
@RequestMapping("/finance/dat/account_report_type")
@Api(value = "账户报表类型接口", tags = "账户报表类型接口")
public class FinanceDatAccountReportTypeController extends BasisController<IFinanceDatAccountReportTypeService, FinanceDatAccountReportTypeQuery, FinanceDatAccountReportTypeVO, FinanceDatAccountReportTypeCommand> {

    @GetMapping("/report_data")
    @ApiOperation(value = "报表数据")
    public ResultModel reportData(String code) throws ServiceException {
        return service.reportData(code);
    }

}